package com.itheima.stock.controller.v1;

import com.itheima.stock.api.UserControllerAPI;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.service.UserService;
import com.itheima.stock.vo.CaptchaVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: UserController
 * Package: com.itheima.stock.controller.v1
 * Description:用户接口实现
 *
 * @Author Lee
 * @Create 2024/10/30
 */
@RestController
public class UserController implements UserControllerAPI {
    @Autowired
    private UserService userService;

    @Override
    public ResponseResult<CaptchaVO> captcha() {

        return ResponseResult.ok(userService.captcha());
    }

    @Override
    public String getName() {
        return "itheima";
    }
}
